/* 全局样式 */
body {
    font-family: 'Noto Serif SC', serif;
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* 自定义动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.8s ease forwards;
}

.animate-pulse {
    animation: pulse 3s ease-in-out infinite;
}

/* 时间轴样式 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: theme('colors.primary');
}

.timeline-item:last-child::before {
    display: none;
}

/* 滚动进度条 */
.progress-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 4px;
    z-index: 100;
}

.progress-bar {
    height: 4px;
    background: theme('colors.primary');
    width: 0%;
}

/* 模态框样式 */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

/* 3D卡片效果 */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-3d:hover {
    transform: rotateY(15deg);
}

/* 音频控制按钮 */
.audio-control {
    animation: pulse 2s infinite;
}

/* 图片悬停效果 */
.image-hover {
    transition: transform 0.3s, filter 0.3s;
}

.image-hover:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timeline-item::before {
        left: -16px;
    }
    
    .timeline-item > div:first-child {
        left: -20px;
        width: 12px;
        height: 12px;
    }
}